<?php
/**
 * Created by PhpStorm.
 * User: sunshubo
 * Date: 2017/9/1
 * Time: 7:57
 */


$d = $_POST['d'];
$s = json_decode($d);
$d = $s->{'cvs'}->{'p'};
//return;
if ($d == 1) {
    $str = '{"r":0,"d":{"l":[[2,"北京市"],[3222,"香港"],[793,"上海市"],[19,"天津市"],[36,"河北省"],[220,"山西省"],[351,"内蒙古"],[466,"辽宁省"],[581,"吉林省"],[651,"黑龙江省"],[811,"江苏省"],[925,"浙江省"],[1027,"安徽省"],[1149,"福建省"],[1244,"江西省"],[1356,"山东省"],[1512,"河南省"],[1689,"湖北省"],[1806,"湖南省"],[1943,"广东省"],[2086,"广西"],[2211,"海南省"],[2238,"重庆市"],[2277,"四川省"],[2482,"贵州省"],[2580,"云南省"],[2726,"西藏"],[2808,"陕西省"],[2926,"甘肃省"],[3027,"青海省"],[3079,"宁夏"],[3107,"新疆"],[3221,"台湾省"],[3223,"澳门"]]}}';
    echo $str;
} else {
    $str = '{"r":0,"d":{"l":[[37,"石家庄市"],[124,"保定市"],[180,"沧州市"],[168,"承德市"],[84,"邯郸市"],[208,"衡水市"],[197,"廊坊市"],[76,"秦皇岛市"],[61,"唐山市"],[104,"邢台市"],[150,"张家口市"]]}}';
    echo $str;
}

//var_dump($str);
